package com.hzw.saas.web.admin.hpc.param;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author sonam
 * @since 2021/2/26 17:36
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel("HPC账号参数")
public class HpcAccountParam {

    @NotBlank(message = "HPC供应商ID不能为空")
    @ApiModelProperty(name = "HPC供应商ID", required = true, position = 1)
    private String providerId;

    @NotBlank(message = "HPC账号不能为空")
    @ApiModelProperty(name = "HPC账号", required = true, position = 1)
    private String hpcAccount;

    @NotBlank(message = "HPC密码不能为空")
    // @Pattern(regexp = "^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%^&*,\\.])[0-9a-zA-Z!@#$%^&*,\\\\.]{8,32}$", message = "密码格式为：8-32个字符，包括大小写字母、数字和部分字符（包括：!@#$%^&()*）")
    @ApiModelProperty(name = "HPC密码", required = true, position = 2)
    private String hpcPassword;

    @ApiModelProperty(name = "HPC状态", position = 2)
    private Integer status = 1;

    @NotBlank(message = "HPC登录节点主机域名不能为空")
    @ApiModelProperty(name = "HPC登录节点主机域名", required = true)
    private String host;

    @NotNull(message = "端口不能为空")
    @ApiModelProperty(name = "端口", required = true)
    private Integer port;

    @ApiModelProperty(name = "核时", required = true)
    private Double coreTime;
}
